<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" href="css/lib/bootstrap.min.css" />
		<link rel="stylesheet" href="js/themes/default/easyui.css" />
		<link rel="stylesheet" href="js" />
		<script src="js/jquery-1.4.4.min.js"></script>
		<script src="js/jquery.easyui.min.1.2.2.js"></script>
		<script src="js/lib/bootstrap.min.js"></script>	
		<script src="js/base.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<style>
		body{
			font-size:12px;
		}
		table,
		th,
		td {
			border: 1px solid grey;
			border-collapse: collapse;
			padding: 5px;
			vertical-align: middle !important;
		}
		
		table td:nth-child(odd) {
			background-color: #f1f1f1;/*#e2e9ea*/
			width:160px;
		}
		table td:nth-child(even) {
			width:300px;
		}
		table tr:nth-child(even) {
			background-color:#ffffff;
		}
	</style>
	<body>
		<div class="">
		<div style="padding:15px 5px 0px 5px;border:3px solid #ccc;margin-bottom:15px">
			<table class="table table-hover">
				
				<tbody>
					<tr>
						<th colspan="8">代理商维护：</th>
					</tr>
					<tr>
						<td>代理商:</td>
						<td colspan="3">
							<select class="form-control" name="state" label="State:" labelPosition="top" style="width:280px;">
								<option value="AR">请选择</option>
								<option value="CA">苏少伟</option>
								<option value="CO">管理员</option>
								<option value="CT">牛9客服</option>
								<option value="DE">糖果云</option>
								<option value="FL">其他</option>
							</select>
						
						</td>
						<td>代理商机构号:</td>
						<td colspan="3"><input placeholder="点击输入" class="form-control" type="text" style="width:280px;" />
							
						</td>						
					</tr>
					<tr>
						
						<td colspan="8">
								<button class="btn btn-danger" style="margin-left:300px;">基本信息更改</button>  
								<button class="btn btn-danger" style="margin-left:300px;">LOGO更改</button>
						</td>
										
					</tr>
				</tbody>
			</table>		
		</div>
		</div>
	</body>
	<script>
		$(function(){
			console.log("开始1")
			$.ajax({
					type:"POST",
					url:window.baseUrl+"user/query/phone",/*根据用户手机号码返回用户基本信息*/
					async:true,
					data:{
						phone:18520149705
					},
					success:function(data){
						console.log(data)
					},
					error:function(data){
						console.log(data)
					}
			});
			console.log("开始2")
			$.ajax({
					type:"POST",
					url:window.baseUrl+"user/query/id",/*根据用户ID返回用户基本信息*/
					async:true,
					data:{
						id:433837908
					},
					success:function(data){
						console.log(data)
					},
					error:function(data){
						console.log(data)
					}
			});
			console.log("开始3")
			$.ajax({
					type:"POST",
					url:window.baseUrl+"user/grade/update",/*根据用户ID修改用户等级*/
					async:true,
					data:{
						id:433837908,
						grade:1
					},
					success:function(data){
						console.log(data)
					},
					error:function(data){
						console.log(data)
					}
			});
			console.log("开始4")
			$.ajax({
					type:"POST",
					url:window.baseUrl+"user/statistics",/*直接或者按条件查询用户、代理商*/
					async:true,
					data:{
						/*phone:18520149705,*/
						/*brandid:1,	*/
						/*start_time:"2017-05-15",
						end_time:"2017-05-15",*/
						/*size:1000*/
					},
					success:function(data){
						console.log(data)
					},
					error:function(data){
						console.log(data)
					}
			});
			console.log("开始5")
			$.ajax({
					type:"POST",
					url:window.baseUrl+"transactionclear/profit/query/"+"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJKdUhlaSIsImV4cCI6MTQ5NTU0Njk2MywidXNlcklkIjo0MzM4Mzc5MDh9.YmJ5BH8V9DH6on13SCJmLqyhZQmsk6G3iGbAq1H7Vn__bWoXCz4cVdyQ9l65N6M_dhhtcT9uWQWO6pAtoMrWNg",/*直接或者按条件查询用户、代理商*/
					async:true,
					data:{
						
					},
					success:function(data){
						console.log(data)
					},
					error:function(data){
						console.log(data)
					}
			});
			console.log("根据手机号码返回信息")
			$.ajax({
					type:"POST",
					url:window.baseUrl+"user/query/phone",/*直接或者按条件查询用户、代理商*/
					async:true,
					data:{
						phone:13471590221
					},
					success:function(data){
						console.log(data)
					},
					error:function(data){
						console.log(data)
					}
			});
		})
		
	</script>
</html>
